//
//  LCVideoTableViewCell.m
//  EnterpriseCloud
//
//  Created by 东亨 on 2017/7/11.
//  Copyright © 2017年 lichao. All rights reserved.
//

#import "LCVideoTableViewCell.h"
#import "LLImagePickerView.h"

@implementation LCVideoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.numberLbl.layer.cornerRadius = CGRectGetHeight(_numberLbl.frame)/2.0;
    self.numberLbl.layer.masksToBounds = YES;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    //调用dataSource
    if (self.dataSource && [self.dataSource respondsToSelector:@selector(loadDataWithLCVideoWithCell:)])
    {
        _LLimgArr = [self.dataSource loadDataWithLCVideoWithCell:self];
    }
    LLImagePickerView *pickerV = [[LLImagePickerView alloc]initWithFrame:CGRectMake(20, 20+40+5, SCREEN_WIDTH - 60, 85)];
    pickerV.showDelete = NO;
    pickerV.showAddButton = NO;
    pickerV.preShowMedias = [NSArray arrayWithArray:_LLimgArr];
    [self.contentView addSubview:pickerV];
}
- (IBAction)audioBtnClick:(UIButton *)sender
{
    if (self.delegate&&[self.delegate respondsToSelector:@selector(audioChooseAudioWithIndex:)])
    {
        [self.delegate audioChooseAudioWithIndex:sender.tag];
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
